package com.fastloan.safe.mgt.root.model.vo;

/**
 * @author kawins
 * @date 2017-10-15 15:05
 */
public class DefMenuVo {

    private String id;

    private String name;

    private String url;

    private String parentId;

    private String menuPic;

    private Integer shorts;

    /**
     * 下一级子菜单数量
     */
    private Integer sonCount;

    /**
     * @see ""
     * 是否在功能模块使用,是否选中
     */
    private boolean funUse;

    public String getId() {
        return id;
    }

    public DefMenuVo setId(String id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public DefMenuVo setName(String name) {
        this.name = name;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public DefMenuVo setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getParentId() {
        return parentId;
    }

    public DefMenuVo setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getMenuPic() {
        return menuPic;
    }

    public DefMenuVo setMenuPic(String menuPic) {
        this.menuPic = menuPic;
        return this;
    }

    public Integer getShorts() {
        return shorts;
    }

    public DefMenuVo setShorts(Integer shorts) {
        this.shorts = shorts;
        return this;
    }

    public Integer getSonCount() {
        return sonCount;
    }

    public DefMenuVo setSonCount(Integer sonCount) {
        this.sonCount = sonCount;
        return this;
    }

    public boolean isFunUse() {
        return funUse;
    }

    public DefMenuVo setFunUse(Integer funUse) {
        if (funUse == 0) {
            this.funUse = Boolean.FALSE;
        } else {
            this.funUse = Boolean.TRUE;
        }
        return this;
    }
}
